package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyCommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyComment record);

    StrategyComment selectByPrimaryKey(Long id);

    List<StrategyComment> selectAll();

    int updateByPrimaryKey(StrategyComment record);

    List<StrategyComment> queryStrateCommentByStrategyId(Long strategyId);

    List<StrategyComment> queryStrategyCommentsByStrategyIdAndState(@Param("strategyId") Long strategyId, @Param("state") Integer state);

    List<StrategyComment> selectForList(StrategyCommentQueryObject qo);
}